package com.sendi.mobilework.view;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * Created by Administrator on 2017/3/22.
 */

public class NotScrollViewPager extends ViewPager {
    public NotScrollViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
    public NotScrollViewPager(Context context) {
        super(context);
    }

    /**
     * 表示事件是否被拦截
     * 返回false表示不拦截
     * */
    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }

    /**
     * 返回false表示对滑动事件不作处理
     * @param ev
     * @return
     */
    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return false;
    }
}
